/*
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:lib_basemodel/server_client/message.pb.dart';
import 'package:m_chatroom/src/extensions/message_extension.dart';

//  服务器消息 xxxx 加入房间 item

class PushUserJoinItem extends StatelessWidget {
  final Message message;
  final Function?  callBack;
  const PushUserJoinItem({super.key, required this.message, this.callBack});

  @override
  Widget build(BuildContext context) {
    return Align(
      alignment: Alignment.centerLeft,
      child: Container(
        margin: const EdgeInsets.only(top: 10, bottom: 10),
        padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 10),
        decoration: const BoxDecoration(
          // color:Colors.red,
            color: Color.fromRGBO(223, 214, 255, 0.09),
          borderRadius: BorderRadius.all(
            Radius.circular(12),
          ),
        ),
        child: RichText(
            text:
            TextSpan(style: DefaultTextStyle.of(context).style, children: [
              TextSpan(
                text: message.sender.nickname,
                style: const TextStyle(color: Color(0xffffd400), fontSize: 12),
                recognizer: TapGestureRecognizer()..onTap = (){
                  callBack?.call(message.sender.id);
                },
              ),
              TextSpan(
                  text: message.msgContent.text,
                  style: const TextStyle(color: Colors.white, fontSize: 12))
            ])),
      ),
    );
  }
}
*/
